/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.domain.clinicalInformation;

import java.io.Serializable;

/**
 *
 * @author jmj
 */
public class FamilyPatientBackgroundId implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = -131678185868075345L;
    private int familyId;
    private int patientId;

    /**
     * 
     */
    public FamilyPatientBackgroundId() {
        super();
    }

    /**
     * @param familyId
     * @param patientId
     */
    public FamilyPatientBackgroundId(int familyId, int patientId) {
        this.familyId = familyId;
        this.patientId = patientId;
    }

   
    /**
     * @return the familyId
     */
    public int getFamilyId() {
        return familyId;
    }

    /**
     * @param familyId the familyId to set
     */
    public void setFamilyId(int familyId) {
        this.familyId = familyId;
    }

    /**
     * @return the patientId
     */
    public int getPatientId() {
        return patientId;
    }

    /**
     * @param patientId the patientId to set
     */
    public void setPatientId(int patientId) {
        this.patientId = patientId;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final FamilyPatientBackgroundId other = (FamilyPatientBackgroundId) obj;
      
        if (this.familyId != other.familyId) {
            return false;
        }
        if (this.patientId != other.patientId) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 71 * hash + this.familyId;
        hash = 71 * hash + this.patientId;
        return hash;
    }
}
